/*
 * Copyright 2010 Lars Heuer (heuer[at]semagia.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.semagia.mql;

import org.xml.sax.SAXException;

/**
 * An exception that can be thrown by a query parser when it encounters an 
 * error from which it cannot recover.
 * 
 * @author Lars Heuer (heuer[at]semagia.com) <a href="http://www.semagia.com/">Semagia</a>
 * @version $Rev: 555 $ - $Date: 2010-09-26 21:31:04 +0000 (Sun, 26 Sep 2010) $
 */
public class MQLException extends SAXException {

    private static final long serialVersionUID = -3530791938906623853L;

    /**
     * Creates a MQLException with the specified message.
     *
     * @param message The error message.
     */
    public MQLException(final String message) {
        super(message);
    }

    /**
     * Creates a MQLException with the specified message and cause.
     *
     * @param message The error message.
     * @param cause The cause of this exception.
     */
    public MQLException(final String message, final Throwable cause) {
        super(message);
        initCause(cause);
    }

    /**
     * Creates a MQLException with the specified cause.
     *
     * @param cause The cause of this exception.
     */
    public MQLException(final Throwable cause) {
        super();
        initCause(cause);
    }

}
